import request from '@/utils/request'



export function getProjectSectionInfoTree() {
  return request.post('buss/commonAPI/getProjTreeWithMhId')
}
//获取左侧项目标段树
export function getLeftProjectTree() {
  return request.post('buss/commonAPI/getProjSecTree')
}
//获取所有项目 包括不含标段的
export function getProjSecTreeAll() {
  return request.post('buss/commonAPI/getProjSecTreeAll')
}

export function getAllSecTree() {
  return request.post('buss/commonAPI/getAllSecTree')
}

export function getAllCompanyTree() {
  return request.post('buss/commonAPI/getAllCompany')
}

export function getProjectsForExamined() {
  return request.post('buss/commonAPI/getProjTreeWithMhId')
}

export function getProjectSectionInfoTreeWithId(data) {
  return request.post('buss/commonAPI/getProjTreeWithMhId?id='+data)
}

export function getProjectDatas() {
  return request.post('buss/commonAPI/getProjectDatas')
}

export function getScopeProjects() {
  return request.post('buss/commonAPI/getScopeProjects')
}

export function getContractList(data) {
  return request.post('buss/commonAPI/getContractList',data)
}

export function getBuildCompanyUsers(data) {
  return request.post('buss/commonAPI/getBuildCompanyUsers?projectIds='+data)
}

export function getParticipatingUnitsUsers(data) {
  return request.post('buss/commonAPI/getParticipatingUnitsUsers?projectIds='+data)
}

export function getContSecList(data) {
  return request.post('buss/commonAPI/getContSecList',data)
}
export function getContractSection(data) {
  return request.post('buss/commonAPI/getContractSection',data)
}
export function getAwardsFiles(id) {
  return request.get('buss/project/getAwardsFiles?projectId='+id)
}

export function getJlContSecList(data) {
  return request.post('buss/commonAPI/getJlContSecList',data)
}

export function getJlContList(data) {
  return request.post('buss/commonAPI/getJlContList',data)
}
export function getProjectByPermission(data) {
  return request.post('buss/commonAPI/getProjectByPermission',data)
}

export function getDictByCode(code) {
  return request.get('buss/commonAPI/getDictByCode?code='+code)
}

export function getProjContract(type) {
  return request.get('buss/commonAPI/getProjContract?type='+type)
}

export function getDeptById(id) {
  return request.get('buss/commonAPI/getDeptById?id='+id)
}

export default {
  getProjectsForExamined,
  getProjectSectionInfoTree,
  getAllCompanyTree,
  getProjectSectionInfoTreeWithId,
  getProjectDatas,
  getScopeProjects,
  getBuildCompanyUsers,
  getParticipatingUnitsUsers,
  getContractList,
  getContractSection,
  getContSecList,
  getJlContSecList,
  getJlContList,
  getDictByCode,
  getProjectByPermission,
  getDeptById,
  getLeftProjectTree,
  getProjSecTreeAll,
  getAllSecTree,
  getProjContract,

}
